package cn.nkjobsearch.publicClass;

import java.io.FileWriter;

public class File {
	/**
	 * 记录日志
	 * logPath 日志的路径
	 * str_log 日志的内容
	 * */
	public final static void writeLog(String logPath, String logStr) {
		System.out.println(logStr);
		try {
			FileWriter fw = new FileWriter(logPath, true);
			fw.write(logStr + "\r\n");
			fw.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	 
	public final static void writeConf(String confPath, String confStr) {
		try {
			FileWriter fw = new FileWriter(confPath, false);
			fw.write(confStr + "\r\n");
			fw.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
